package org.example.bigwork.service;

import org.example.bigwork.entity.Attachment;

import java.util.List;

public interface AttachmentService {
    /**
     * 添加附件
     * @param attachment 附件对象
     * @return 是否添加成功
     */
    boolean addAttachment(Attachment attachment);
    
    /**
     * 删除附件
     * @param attachmentId 附件ID
     * @return 是否删除成功
     */
    boolean deleteAttachment(Integer attachmentId);
    
    /**
     * 获取任务的所有附件
     * @param taskId 任务ID
     * @return 附件列表
     */
    List<Attachment> getAttachmentsByTaskId(String taskId);
} 